package com.bocai.grainshop.member.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.bocai.common.utils.PageUtils;
import com.bocai.grainshop.member.entity.MemberEntity;
import com.bocai.grainshop.member.exception.EmailException;
import com.bocai.grainshop.member.exception.UsernameException;
import com.bocai.grainshop.member.vo.MemberUserLoginVo;
import com.bocai.grainshop.member.vo.MemberUserRegisterVo;
import com.bocai.grainshop.member.vo.SocialUser;

import java.util.Map;

/**
 * 会员
 *
 * @author SunJinBo
 * @email 2374461077@qq.com
 * @date 2022-03-01 20:18:42
 */
public interface MemberService extends IService<MemberEntity> {

    PageUtils queryPage(Map<String, Object> params);

    void registMember(MemberUserRegisterVo registerVo);

    void boolUsernameUnique(String username) throws UsernameException;

    void boolEmailUnique(String email) throws EmailException;

    MemberEntity login(MemberUserLoginVo loginVo);

    MemberEntity GiteeLogin(SocialUser socialUser);
}

